package com.ecfront.pojo;

import java.util.Set;

/**
 * 订单商品表
 * @version 1.0
 * @author zhufeng
 */
public class PayGoods {
	
	private int id;//订单商品ID
	private double price;//该商品总价
	private int total;//该商品数量
	//以下是多对一关联
	private GoodsImpl goodssub;//商品的ID
	private Pay pay;//该商品所属的订单
	
	public PayGoods(){}
	public PayGoods(int id, double price, int total, GoodsImpl goodssub, Pay pay) {
		super();
		this.id = id;
		this.price = price;
		this.total = total;
		this.goodssub = goodssub;
		this.pay = pay;
	}
	public Pay getPay() {
		return pay;
	}
	public void setPay(Pay pay) {
		this.pay = pay;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public GoodsImpl getGoodssub() {
		return goodssub;
	}
	public void setGoodssub(GoodsImpl goodssub) {
		this.goodssub = goodssub;
	}
}
